﻿namespace dPet.Infrastructure.EntityFramework.ModelConfigurations
{
	using dPet.Domain.Models;
	using Hangerd.EntityFramework;

	public class StaffConfig : EntityTypeConfigBase<Staff>
	{
		public StaffConfig()
		{
			Property(s => s.HospitalId)
				.IsRequired()
				.HasMaxLength(32);

			Property(s => s.LoginName)
				.IsRequired()
				.HasMaxLength(50);

			Property(s => s.EncryptedPassword)
				.IsRequired()
				.HasMaxLength(32);

			Property(s => s.Salt)
				.HasMaxLength(10);
		}
	}
}
